/**
 * @指向结构的指针
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	struct date {
		int month;
		int day;
		int year;
	};

	struct date today, *dateptr;

	dateptr = &today;

	dateptr->month = 9;
	dateptr->day = 25;
	dateptr->year = 2004;

	printf("Today's date is %d/%d/%.2d\n", dateptr->month, dateptr->day, dateptr->year % 100);

	return 0;
}
